Example: Frameset with two frames


This example demonstrates how to use WOFrame objects to divide a browser window into two independent frames. Note, to run this example, your browser must support frames.

When you click the link below, a page is returned whose HTML template looks like this:

    <HTML>
    <FRAMESET ROWS = "50%, 50%">
        <WEBOBJECT NAME="FRAME1"> </WEBOBJECT>
        <WEBOBJECT NAME="FRAME2"> </WEBOBJECT>
    </FRAMESET>
    </HTML>

The corresponding declarations file contains:

    FRAME1: WOFrame {value=frame1; name="Frame1";};
    FRAME2: WOFrame {value=frame2; name="Frame2";};

And the script file defines the frame1 and frame2 methods that provide the content for each frame:

    - frame1 {
       return [WOApp pageWithName:@"FrameEx1a"];
    }

    - frame2 {
       return [WOApp pageWithName:@"FrameEx1b"];
    }

Give the example a try. From the test page, you'll be able to look at the code for each frame.


Test: